<div class="page-content">
    <div class="col-sm-6 pull-right">
        <span class="btn btn-sm btn-primary pull-right" onclick="javascript:window.location.href = 'info'">
            添加
            <i class="icon-reply icon-only"></i>
        </span>
    </div>
    <div class="page-header">
        <h1>
            {:model('menu')->getName()} {gt name="$Request.get.group_id" value="0"} [{:model('AdminGroup')->getGroupName($Request.get.group_id)}]{/gt}
        </h1>
    </div><!-- /.page-header -->

    <form class="form-horizontal" role="form" action="{:url('index')}" method="post" name="myfrom">
        <div  class="form-group" >
            <label class="control-label pull-left" style="margin-left: 20px;">用户名称：</label>
            <div >
                <input type="text" class="col-xs-5 col-sm-2" value="{$name}" name="name" placeholder="请输入姓名或手机号">
            </div>
            <span class="btn btn-sm btn-primary pull-left" style="margin-left: 10px;" onclick="myfrom.submit()">
            搜素
            <i class="icon-reply icon-only"></i>
        </span>
        </div>

    </form>
    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <div class="row">
                <div class="col-xs-12">
                    <table id="simple-table" class="table  table-bordered table-hover">
                        <thead>
                        <tr>

                            <th class="detail-col">序号</th>
                            <th>企业</th>
                            <th>用户名</th>
                            <th>真实姓名</th>
                            <th>手机号</th>
                            <th>类型</th>

                            <th>添加时间</th>
                            <th>状态</th>

                            <th>操作</th>
                        </tr>
                        </thead>

                        <tbody>
                        {volist name="lists" id="vo"}
                        <tr>

                            <td>{$vo.id}</td>
                            <td style="width: 250px;">{$vo.company_name}</td>
                            <td>{$vo.user_name}</td>
                            <td>{$vo.true_name}</td>
                            <td>{$vo.mobile}</td>
                            <td>{switch name="vo['role_id']"}{case value="1"}管理员{/case}{case value="2"}采样员{/case}{case value="3"}督察{/case}{/switch}</td>
                            <td>{:date("Y-m-d H:i",$vo['create_at'])}</td>
                            <td>{if condition="$vo['status'] eq '2'"}禁用{else/}正常{/if}</td>

                            <td>

                                <a href='{:url("info","id=$vo[id]")}'>
                                    <span class="btn btn-xs btn-info">
                                                        编辑
                                    <i class="icon-reply icon-only"></i>
                                            </span>
                                </a>
                                <a href='javascript:void(0)' onclick="return alert_del('{:url(\"del\",\"id=$vo[id]\")}', '确认要删除这条记录吗？');"
                                <span class="btn btn-xs btn-danger">
                                                   删除
                                    <i class="icon-reply icon-only"></i>
                                            </span>
                                </a>
                            </td>

                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                   
                </div><!-- /.span -->
            </div><!-- /.row -->
            {$lists->render()}
            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->



